home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Misc / Cookie / Source / StellaView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  682 b   |  38 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <appkit/View.h>
  5.  
  6. #define NUMBER_STARS        25
  7. #define MAX_MAGNITUDE    7
  8. #define STAR_WIDTH         7
  9. #define STAR_HEIGHT         11
  10.  
  11. struct StellaStar
  12. {
  13.     int x,y;
  14.     char cycle,magnitude;
  15.     BOOL forward;
  16. };
  17.  
  18. @interface StellaView:View
  19. {
  20.     struct _stellaFlags {
  21.         unsigned int blankedscreen:1;
  22.         } flags;
  23.     struct StellaStar stars[NUMBER_STARS];
  24.     int width,height;
  25.     DPSTimedEntry myTimedEntry;
  26. }
  27.  
  28. - drawSelf:(const NXRect *)rects :(int)rectCount;
  29. - startAnimation;
  30. - endAnimation;
  31. - initFrame:(const NXRect *)frameRect;
  32. - makeMyStar :(int)number;
  33. - (BOOL)starExists :(int)x :(int)y;
  34. - showStar :(int)x :(int)y :(int)cycle;
  35. - deleteStar :(int)x :(int)y;
  36.  
  37. @end
  38.